<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
import { AppDeviceEnquire } from '@/utils/mixin'

export default {
  mixins: [AppDeviceEnquire],
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
      locale: zhCN,
      isRouterAlive: 0
    }
  },
  mounted() {

  },
  methods: {
    reload() {
      this.isRouterAlive = 0;
      this.$nextTick(() => {
        this.isRouterAlive = 1;
      });
    }
  }
}
</script>

<style>
#app {
  height: 100%;
}

.warpper-box {
  background: #fff;
  min-height: calc(100vh - 158px) !important;
  padding: 15px;
}

.warpper-boxs {
  background: #fff;
  padding: 15px 15px 1px;
}

.ant-btn-warning {
  color: #fff !important;
  background-color: #e6a23c !important;
  border-color: #e6a23c !important;
}

.color-grey {
  color: #909399;
}

.link-icon {
  color: #1890ff !important;
  font-size: 20px;
}

.ant-btn+.ant-btn {
  margin-left: 8px;
}

.form-create {
  margin-bottom: 18px !important;
}

.main-header-content {
  border: 1px solid #91d5ff;
  background-color: #e6f7ff;
  padding: 30px;
  margin-bottom: 15px;
}

img {
  cursor: pointer;
}

.ant-table-wrapper {
  margin-top: 15px;
}

.custom-modal {
  text-align: center;
}

.custom-modal .ant-modal-body {
  padding: 0;
}

.custom-modal .ant-modal {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

.custom-drawer-footer {
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 100%;
  border-top: 1px solid #e9e9e9;
  padding: 10px 16px;
  background: #fff;
  text-align: right;
  z-index: 1;
}

.custom-select .ant-select {
  width: 180px !important;
}

.custom-html .ant-form-item-label>label {
  color: #f50;
}

.custom-check-block .ant-checkbox-group {
  display: block;
}

.custom-check-block .ant-checkbox-group-item {
  margin-top: 15px;
  display: block;
}

.form-create .ant-select-selection--single {
  min-width: 180px;
}

.custom-table tr td {
  border: 1px solid #f0f0f0;
  color: rgba(0, 0, 0, .85);
  font-weight: normal;
  font-size: 14px;
  padding: 10px 24px;
}

.custom-table {
  min-height: 25px;
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.tr-title {
  background-color: #fafafa;
  width: 150px;
  vertical-align: top;
}

.voucker-pvp {
  width: 108px;
  height: 128px;
  position: relative;
  display: inline-block;
  margin: 10px 10px 10px 0
}

.voucker-name {
  height: 42px;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: block;
}

.voucker-pmp {
  position: absolute;
  bottom: 0px;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.65);
  text-align: center;
  line-height: 18px;
  cursor: pointer;
  left: 0;
  right: 0;
  display: flex;
  padding: 6px;
  margin: 0;
}

.footBtn {
  position: fixed !important;
  right: 40px;
  bottom: 25px;
  z-index: 100;
}
.uploadDiv {
  width: 100px;
  height: 100px;
  position: relative;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-right: 10px;
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.uploadDiv img {
  width: 100%;
}
.uploadDiv .iconClose {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 20px;
  color: #ff4d4f;
}
.uploadFile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}
.uploadFile .text {
  color: #1890ff;
}
.uploadFile .iconClose {
  color: #ff4d4f;
}
</style>
